<#macro colView field title width sort alias event>
<div class="layui-col-md2">
    <div class="layui-btn" data-field="${field!}" data-event="${event!}" data-alias="${alias!}" data-title="${title!}" data-width="${width!}" data-sort="${sort!}" >
        <span id="title">${title!}</span>
        <i onclick="javascript:toRight(this)" class="layui-icon layui-icon-right"></i>
        <i onclick="javascript:del(this)" class="layui-icon layui-icon-close-fill"></i>
        <i onclick="javascript:toLeft(this)" class="layui-icon layui-icon-left"></i>
    </div>
</div>
</#macro>
<script id="colView" type="text/html">
    <@colView field="" title="" width="" sort="" alias="" event=""></@colView>
</script>
<#macro colEdit>
<form id="editView" class="layui-form" action="">
    <div class="layui-row edit-form">
        <div class="layui-col-md12">
            <label class="layui-form-label">字段</label>
            <div class="layui-input-inline" selectPlus-code="field"  selectPlus="true"  name="field" >
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">字段别名</label>
            <div class="layui-input-inline">
                <input type="text" maxlength="64" lay-verify="required" value="" name="alias" autocomplete="off" placeholder="请输入内容,将覆盖field字段" class="layui-input"/>
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">中文名</label>
            <div class="layui-input-inline">
                <input type="text" maxlength="64" lay-verify="required" value="" name="title" autocomplete="off" placeholder="请输入内容" class="layui-input"/>
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">宽度</label>
            <div class="layui-input-inline">
                <input type="text" maxlength="64" lay-verify="required" value="" name="width" autocomplete="off" placeholder="请输入百分比(1-100)" class="layui-input"/>
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">点击事件</label>
            <div class="layui-input-inline">
                <input type="text" maxlength="64" lay-verify="required" value="" name="event" autocomplete="off" placeholder="请输入方法名" class="layui-input"/>
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">排序支持</label>
            <div class="layui-input-inline">
                <select name="sort" lay-verify="required">
                    <option value=""></option>
                    <@dict code="YN">
                        <#list dicts as dict>
                            <option value="${dict.value}">${dict.note}</option>
                        </#list>
                    </@dict>
                </select>
            </div>
        </div>
    </div>
</form>
</#macro>
<script id="colEdit" type="text/html">
    <@colEdit></@colEdit>
</script>
